<?php

namespace Trawind\Remotes\Repositories\Storage\Sts;

use Illuminate\Http\Request;
use Trawind\Remotes\BaseRepository;
use Trawind\Remotes\Contracts\Repositories\Storage\Sts\StsRepository;
use Trawind\Basics\Enums\ServiceDomain;

/**
 * Class StsRepositoryEloquent.
 *
 * @package namespace  Trawind\Remotes\Repositories\Storage\Sts;
 */
class StsRepositoryEloquent extends BaseRepository implements StsRepository
{

    public $baseRoute='/sts';
    
    
    /**
     * @var array
     */
    private $params;

    /**
     * @var string[]
     */
    private $fields = [

    ];

    /**
     * ObjectsRemoteEloquent constructor.
     * @param  Request  $request
     */
    public function __construct(Request $request)
    {
        $tenantId = $request->get('tenant_id') ? : null;
         $this->domain = ServiceDomain::STORAGE_DOMAIN($tenantId);
    }

    /**
     * @param string[] $columns
     * @return mixed|void
     */
    function all($columns = ['*'])
    {
        return $this->setUrl($this->baseRoute)->result();
    }

    public function find($id, $columns = ['*'])
    {
        // TODO: Implement find() method.
    }

    /**
     * @param $params
     */
    private function setParams($params)
    {
        $this->params = $params;
    }

    public function create(array $attributes)
    {
    }

    public function update(array $attributes, $id)
    {
        // TODO: Implement update() method.
    }
}
